<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Overview</title>
  <style>
    body {
      margin: 0;
    }
  </style>
</head>

<body>
  <div id="app"></div>
  <script type="module">
    import { createApp } from 'vue';
    import App from './main.vue';
    import 'tdesign-vue-next/es/style/index.css';
    import 'highcharts/css/highcharts.css';
    import '@highcharts/dashboards/css/dashboards.css';
    createApp(App).mount('#app');

    function switchTheme(e) {
      document.documentElement.setAttribute('theme-mode', e.matches ? 'dark' : 'light');
    }
    const darkQuery = matchMedia('(prefers-color-scheme: dark)');
    darkQuery.addListener(switchTheme);
    switchTheme(darkQuery);
  </script>
</body>

</html>